package br.com.trabalho4.view;

import java.awt.BorderLayout;
import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JCheckBox;

public class Configuracao extends JDialog {

	private final JPanel contentPanel = new JPanel();
	private JCheckBox checkboxTracejado;
	private JCheckBox checkboxWireframa;

	/**
	 * Launch the application.
	 */
	/*public static void main(String[] args) {
		try {
			Configuracao dialog = new Configuracao();
			dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
			dialog.setVisible(true);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}*/

	/**
	 * Create the dialog.
	 */
	public Configuracao() {
		setTitle("Configuracao");
		setBounds(100, 100, 450, 300);
		getContentPane().setLayout(new BorderLayout());
		contentPanel.setLayout(new FlowLayout());
		contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
		getContentPane().add(contentPanel, BorderLayout.CENTER);
		{
			checkboxWireframa = new JCheckBox("Wiframe");
			contentPanel.add(checkboxWireframa);
		}
		{
			checkboxTracejado = new JCheckBox("Tracejado");
			contentPanel.add(checkboxTracejado);
		}
		{
			JPanel buttonPane = new JPanel();
			buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
			getContentPane().add(buttonPane, BorderLayout.SOUTH);
			{
				JButton okButton = new JButton("OK");
				okButton.setActionCommand("OK");
				buttonPane.add(okButton);
				getRootPane().setDefaultButton(okButton);
			}
		}
	}

	public JCheckBox getCheckboxTracejado() {
		return checkboxTracejado;
	}
	public JCheckBox getCheckboxWireframa() {
		return checkboxWireframa;
	}
}
